import styles from './index.less';
import { Component } from 'react';
import { ITagDetail } from '@/types';
import ArtcleItem from '@/components/articleItem/artcleitem'
import { Loading, TagModelState, useSelector } from 'umi';
interface Props {
    tagDetail:ITagDetail[]
}

const tagfonnt=()=>{
  const { tag:{tagDetail} } = useSelector((state: { tag: TagModelState, loading: Loading }) => {
    return {
      tag: state.tag,
      loading: state.loading,
    }
  });

    return (
      <div className={styles.tagfoot}>
          {
              tagDetail.length > 0?tagDetail.map(item=>{
                  return<div className={styles.itemThink} key={item.id}>
                    <ArtcleItem item={item}/>
                  </div>
                // return <ArtcleItem item={item}/>
              }):"暂无数据"
          }
      </div>
    );
}
export default tagfonnt